package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_teaching_student_in_class")
public class TeachingStudentInClass implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 学生所属小组
     */
    private Integer groupId;

    // 关联字段，不在数据库表中
    @TableField(exist = false)
    private String studentName;
    @TableField(exist = false)
    private String className;

    public TeachingStudentInClass(Integer classId, Integer studentId) {
        this.classId=classId;
        this.studentId=studentId;
    }
}
